<!DOCTYPE html>
<html>
<head>
    <title></title>
    <#include "/header.html"/>
    <link rel="stylesheet" href="${request.contextPath}/statics/plugins/datetimepicker/bootstrap-datetimepicker.css">
    <script src="${request.contextPath}/statics/plugins/datetimepicker/bootstrap-datetimepicker.js"></script>
    <script src="${request.contextPath}/statics/plugins/datetimepicker/locales/bootstrap-datetimepicker.zh-CN.js"></script>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-2" style="width: 15%;">
                <input type="text" class="form-control"  v-model="q.username" @keyup.enter="query" placeholder="用户名称">
            </div>
            <div class="form-group col-sm-2" style="width: 15%;">
                <input type="text" class="form-control"  v-model="q.realname" @keyup.enter="query" placeholder="真实姓名">
            </div>
            <div class="form-group col-sm-2" style="width: 15%;">
                <input type="text" class="form-control"  v-model="q.drivingdabh" @keyup.enter="query" placeholder="驾驶证号码">
            </div>
            <div class="form-group col-sm-2" style="width: 15%;">
                <input type="text" class="form-control"  v-model="q.starttime" placeholder="查询开始时间">
            </div>
            <div class="form-group col-sm-2" style="width: 15%;">
                <input type="text" class="form-control" v-model="q.endtime" placeholder="查询截至时间">
            </div>
            <a class="btn btn-default" @click="query">查询</a>
            <a class="btn btn-warning" @click="reset">重置</a>
            <!--<#if shiro.hasPermission("applicationUser:user:save")>
                <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
            </#if>
            <#if shiro.hasPermission("applicationUser:user:update")>
                <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
            </#if>-->
            <#if shiro.hasPermission("applicationUser:user:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
        </#if>
    </div>
    <table id="jqGrid"></table>
    <div id="jqGridPager"></div>
</div>

<div v-show="!showList" class="panel panel-default" align="center">
    <div class="panel-heading">{{title}}</div>
    <form class="form-horizontal" style="width:70%!important;">
        <div class="form-group">
            <div class="col-sm-2 control-label" style="width: 10%;">应用</div>
            <div class="col-sm-10" style="width: 40%;">
                <select class="form-control" width="80%" v-model="user.applicationId">
                    <option value="99a22c16-bd87-498e-a2a8-c55bf02b0b9d">掌上交通</option>
                </select>
            </div>
            <div class="col-sm-2 control-label" style="width: 10%;">用户名</div>
            <div class="col-sm-10" style="width: 40%;">
                <input type="text" class="form-control" width="80%" v-model="user.username" placeholder=""/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label" style="width: 10%;">创建日期</div>
            <div class="col-sm-10" style="width: 40%;">
                <input type="text" class="form-control" width="80%" v-model="createdate" placeholder="" readonly="readonly"/>
            </div>
            <div class="col-sm-2 control-label" style="width: 10%;">修改日期</div>
            <div class="col-sm-10" style="width: 40%;">
                <input type="text" class="form-control" width="80%" v-model="modifyDate" placeholder=""
                       readonly="readonly"/>
            </div>
        </div>
        <!--<div class="form-group">-->
        <!--<div class="col-sm-2 control-label" style="width: 10%;"></div>-->
        <!--<div class="col-sm-10" style="width: 40%;">-->
        <!--<input type="text" class="form-control" width="80%" v-model="user.password" placeholder=""/>-->
        <!--</div>-->
        <!--<div class="col-sm-2 control-label" style="width: 10%;"></div>-->
        <!--<div class="col-sm-10" style="width: 40%;">-->
        <!--<input type="text" class="form-control" width="80%" v-model="user.wxOpenId" placeholder=""/>-->
        <!--</div>-->
        <!--</div>-->
        <!--<div class="form-group">-->
        <!--<div class="col-sm-2 control-label" style="width: 10%;"></div>-->
        <!--<div class="col-sm-10" style="width: 40%;">-->
        <!--<input type="text" class="form-control" width="80%" v-model="user.wxUnionId" placeholder=""/>-->
        <!--</div>-->
        <!--<div class="col-sm-2 control-label" style="width: 10%;"></div>-->
        <!--<div class="col-sm-10" style="width: 40%;">-->
        <!--<input type="text" class="form-control" width="80%" v-model="user.nickName" placeholder=""/>-->
        <!--</div>-->
        <!--</div>-->
        <div class="form-group">
            <!--<div class="col-sm-2 control-label" style="width: 10%;"></div>-->
            <!--<div class="col-sm-10" style="width: 40%;">-->
            <!--<input type="text" class="form-control" width="80%" v-model="user.wxAvatar" placeholder=""/>-->
            <!--</div>-->
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </div>
    </form>
</div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/userRegister.js?_${.now?long}"></script>
</body>
</html>